import subprocess

def captureAndDownloadImageLinux(filename):
    #Autodetect the camera and take a photo
    subprocess.call(["gphoto2", "--auto-detect"])
    subprocess.call(["gphoto2", "--capture-image-and-download", "--filename=" + filename, "--force-overwrite"])
